#!/bin/sh

DIRNAME=`dirname .`
DIRLIBS=$DIRNAME/lib/*

if [ -n "$CLASSPATH" ] ; then
  LOCALCLASSPATH=$CLASSPATH
fi

for i in ${DIRLIBS}; do 
    if [ "$i" != "${DIRLIBS}" ] ; then
        if [ -z "$LOCALCLASSPATH" ] ; then
            LOCALCLASSPATH=$i
        else
            LOCALCLASSPATH="$i":$LOCALCLASSPATH
        fi
    fi
done

java -cp $LOCALCLASSPATH org.jboss.minstaller.Installer $*
